home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 4023 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: news.primenet.com!not-for-mail
  2. From: gbe@primenet.com (Gary Edstrom)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: GetSystemMetrics
  5. Date: 26 Jan 1996 22:47:00 -0700
  6. Organization: Sequoia Software
  7. Sender: root@primenet.com
  8. Message-ID: <3109bc99.12489030@news.primenet.com>
  9. References: <4ecccb$rpb@news.iconn.net>
  10. X-Posted-By: ip026.lax.primenet.com
  11. X-Newsreader: Forte Agent .99c/16.141
  12.  
  13. kjpoglit@kjpoglit. (Karl Poglitsch) wrote:
  14.  
  15. >I have a question for you now...  Any way to stop a window from being sized too 
  16. >small?  I tried to intercept the WM_SIZE command, however I couldn't get 
  17. >anything working there...  I know it can be done, but I can't figure out how to 
  18. >do it.  I'm also looking into animated icons, however I can't get it to change 
  19. >by itself.  I force it to repaint, but that doesn't work.  It does work if I 
  20. >actually move the icon though.  Any ideas on this?
  21.  
  22. Try intercepting the WM_GETMINMAXINFO message.  It passes a pointer to
  23. a MINMAXINFO structure where you can store all of the information as
  24. to minimum & maximum window sizes and positions.
  25.  
  26. Gary
  27.  
  28. --
  29. Gary Edstrom <gbe@primenet.com> | Sequoia Software
  30. PO Box 9573                     | Programming & Technical Services
  31. Glendale CA 91226-0573          | PGP Key ID: 0x1A0D44BD
  32. PGP Fingerprint: 72 AA 4F 73 05 53 89 C6  8A EE F4 EE D1 C0 13 8D 
  33.